Repository navigation
Skills, a tool installer and MCP in both directions - #16
Merged
Merged
Conversation
The agent could drive the bridge but had no idea what the machine could do.
Three things close that gap and they stay separate on purpose.
Skills are Markdown bodies plus the tools they declare. /api/skills reports
ready/partial/blocked from what is actually installed, and read_skill only
hands the body over together with that verdict. Twelve ship (triage,
function recovery, debugging, malware static, YARA, dependency audit,
protocol reversing, APK, firmware, disk and memory forensics, tracing).
The catalogue covers RE, debugging, mobile, forensics and networking with
the release asset each entry would use, so the install button and
`--install` follow the cloudflared pattern: GitHub release, SHA-256 from
the same API response, into the data dir with mode 0700, no PATH, no root.
Tools without a standalone Linux binary say so instead of failing later.
MCP works both ways. As a client, twelve presets report exactly what
blocks each one; HTTP presets talk to a server the user already runs and
stdio presets spawn only on request. Every call is audited with secrets
redacted, and a mutation-looking tool needs allow_mutating, which the
panel asks for first. As a server, `--serve` speaks 2025-06-18 over stdio
with eight tools; --allow-write is a separate flag.
Six tests found defects rather than covering them: a closed pipe escaped
send() as a 500, `arguments: []` was accepted because `or {}` turns an
empty list into a dict, a .tar.gz was saved as asset.gz and installed as
if the tarball were the binary, mcp.connect could lose a live session on
a non-JSON serverInfo, a mutation refusal was a 400 where the panel needs
409, and a reader thread seeing EOF left waiters to time out. Two preset
bugs surfaced too: ghidra-mcp required a java_token tool that never
existed, and ToolSpec could not resolve a per-host asset name.
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Three tests assumed Linux: one asserted YARA's asset for the host instead of for the platform it was naming, one expected a tool to be undownloadable everywhere when it is only undownloadable here, and one compared a resolved binary name to the Unix spelling. CI runs Windows, so they now name the platform they mean or derive the expected suffix from sys.platform. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Three things that make the agent aware of the machine it runs on, kept separate on purpose:
GET /api/skillsreportsready/partial/blockedfrom what is actually installed, andread_skillonly hands the body over together with that verdict. Twelve ship: binary triage, function recovery, native debugging, malware static, YARA authoring, dependency audit, protocol reversing, Android APK, firmware/IoT, disk forensics, memory forensics, dynamic tracing.python -m nerveforge.toolkit --install radare2follow the cloudflared pattern: GitHub release, SHA-256 from the same API response, into the data dir with mode0700, noPATH, no root. Tools that publish no standalone Linux binary (Ghidra, IDA, Binary Ninja, Sleuth Kit) say "use a package manager" instead of offering a button that would fail.409untilallow_mutating, which the panel only sends after a confirmation. As a server,python -m nerveforge.toolkit --servespeaks MCP 2025-06-18 over stdio with eight tools, and--allow-writeis a separate flag.The panel gets two tabs: Skills and MCP.
Bugs found by the tests
Six of the new tests found defects rather than covering them:
send()let aValueErrorfrom a closed pipe escape as a 500.arguments: []was accepted, becauseor {}turns an empty list into a dict.jadx-1.0.tar.gzwas saved asasset.gzand installed as if the tarball were the binary — no tar branch ever ran.mcp.connectcould lose a live session because a server'sserverInfowas not JSON-serialisable.400where the panel needs409; an unknown server now maps to404.Two preset bugs surfaced as well:
ghidra-mcprequired ajava_tokentool that never existed (there is now a realjavaentry), andToolSpeccould not resolve a per-host asset name, so the Android and Windows variants were unreachable.Checks
skipped=1), ruff clean, CI green on Linux 3.10/3.12 and Windows.mcpserver,registry,skillcatalogat 100%.docs/API.mdregenerated.python -m nerveforge.toolkit --serveanswered a real MCP client (2025-06-18, 8 tools) and refusedworkspace_writewithout--allow-write.VERSIONstays 8.1.0; this rides inUnreleased.